import request from '@/utils/request'

// 查询手术申请明细列表 (分页)
export function selectPageSurgeryApplyDetail(query) {
    return request({
        url: '/business/surgeryApplyDetail/selectPage',
        method: 'get',
        params: query
    })
}

// 查询手术申请明细列表 (不分页)
export function listSurgeryApplyDetail(query) {
    return request({
        url: '/business/surgeryApplyDetail/list',
        method: 'get',
        params: query
    })
}

// 查询手术申请明细详细
export function getSurgeryApplyDetail(surgeryApplyDetailId) {
    return request({
        url: '/business/surgeryApplyDetail/' + surgeryApplyDetailId,
        method: 'get'
    })
}

// 新增手术申请明细
export function addSurgeryApplyDetail(data) {
    return request({
        url: '/business/surgeryApplyDetail',
        method: 'post',
        data: data
    })
}

// 修改手术申请明细
export function updateSurgeryApplyDetail(data) {
    return request({
        url: '/business/surgeryApplyDetail',
        method: 'put',
        data: data
    })
}

// 删除手术申请明细
export function delSurgeryApplyDetail(surgeryApplyDetailId) {
    return request({
        url: '/business/surgeryApplyDetail/' + surgeryApplyDetailId,
        method: 'delete'
    })
}
